/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import '~@app/uiTheme/less/color-schema.less';

:global {
  .userNavigation {
    &__container {
      background-color: @PRIMARY_100;
      min-width: 272px;
    }

    &__link:hover {
      text-decoration: none !important; // Have to set important here since global anchor has a !important to show underline
    }

    &__title {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 0 16px;
      background-color: @PRIMARY_200;
      height: 54px;
      margin-bottom: 20px;
      font-weight: 500;
      font-size: 18px;
    }

    &__item, &__header, &__headerLink, &__navigation {
      display: flex;
      align-items: center;
      padding: 7px 8px;
      margin: 2px 16px 0 54px;
      border-radius: 4px;
      text-decoration: none;
      color: @BLACK;
      font-weight: 300;

      &:hover {
        background-color: @PRIMARY_300;
      }

      &.--selected {
        background-color: @PRIMARY_900 !important; // Important is needed here to ignore the :hover's background
        color: @WHITE;
      }
    }

    &__header {
      margin: 0 16px;
      padding-left: 0px;
      &:hover {
        background-color: inherit;
      }
    }

    &__headerLink {
      margin: 2px 16px 0 16px;
      &:hover {
        background-color: @PRIMARY_300;
      }
    }

    &__navigation {
      margin: 0 16px;
      span {
        color: @PRIMARY_800;
      }

      &:hover {
        background-color: inherit;
      }
    }

    &__icon {
      margin: 0 8px 0 0;
      height: 24px;
      width: 24px;
      &.--unselected {
        filter: invert(48%) sepia(8%) saturate(774%) hue-rotate(174deg) brightness(94%) contrast(80%);
      }
    }

    
    &__title-icon {
      margin: 0 8px;
      height: 24px;
      width: 24px;
    }
  }
  #selected {
    filter: invert(91%) sepia(10%) saturate(944%) hue-rotate(146deg) brightness(97%) contrast(85%);
  }
}